<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
	
	<xsl:template match="/">
			<html>
			<head>
				<title>Nodes</title>
			</head>
			<body>
				<h1>Nodes</h1>
				<ul>
					<xsl:apply-templates select="/nodes/node"/>
				</ul>
			</body>
		</html>
	</xsl:template>
	
	<xsl:template match="node">
		<li>
			<div>
				<span><b><xsl:value-of select="name"/></b></span>
				<xsl:apply-templates select="tag"/>
			</div>
			<div>
				<i>
					<xsl:value-of select="desc"/>
				</i>
			</div>	
			<ul>
				<xsl:apply-templates select="cond"/>
			</ul>
		</li>
	</xsl:template>
	
	<xsl:template match="tag">
		<span>[<u><xsl:value-of select="."/></u>]</span>
	</xsl:template>
	
	<xsl:template match="cond">
		<li>(<xsl:value-of select="@cost"/>)<xsl:value-of select="."/></li>	
	</xsl:template>
	
</xsl:stylesheet>